package com.checking.attendance.service;

import com.checking.attendance.dao.ClockMapper;
import com.checking.attendance.dao.CourseMapper;
import com.checking.attendance.pojo.Clock;
import com.checking.attendance.pojo.Course;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseService {
    @Autowired
    private CourseMapper courseMapper;

    public int insertSelective(Course record){
        return courseMapper.insertSelective(record);
    }

    public List<Course> selectByPrimaryCourseAll(){
        return courseMapper.selectByPrimaryCourseAll();
    }

    public List<Course> queryCourseInfoAll(String uesrId){
        return courseMapper.queryCourseInfoAll(uesrId);
    }


    public int deleteByPrimaryKey(String id){
        return courseMapper.deleteByPrimaryKey(id);
    }

    public Course selectByPrimaryKey(String id){
        return courseMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Course record){
        return courseMapper.updateByPrimaryKeySelective(record);
    }

    public List<Course> queryStudentCourseInfoAll(Course record){
        return courseMapper.queryStudentCourseInfoAll(record);
    }

}
